In [1]:
%matplotlib inline

import numpy as np
import matplotlib.pyplot as plt

In [2]:
greyhounds = 500
labs = 500

In [3]:
grey_height = 28 + 4 * np.random.randn(greyhounds)
lab_height = 24 + 4 * np.random.randn(labs)

In [4]:
# Note on np.random.nrand()
# distribution of mean 0 and variance 1
# returns number of integers passed
np.random.randn(4)


Out[4]:
array([-0.60630963,  0.38330667,  0.72643249,  0.19420509])

In [5]:
grey_height[:5]


Out[5]:
array([ 31.02032744,  28.16672221,  29.05153806,  28.85424204,  25.63410588])

In [6]:
plt.hist([grey_height, lab_height], stacked=True, color=['r', 'b'])
plt.show()